package com.thejaswi.commons;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author raj
 */
public class InvalidBaseException extends Exception {
   /**
   *
   */
   private static final long serialVersionUID = 1L;
   String customExceptionMessage;

// Default constructor - initializes instance variable to unknown
  public InvalidBaseException() {
    super(); // call superclass constructor
    this.customExceptionMessage = "unknown";
  }

// Constructor receives some kind of message that is saved in an instance variable.
  public InvalidBaseException(String errMessage) {
    super(errMessage); // call super class constructor
    this.customExceptionMessage = errMessage;  // save message
  }

// public method, callable by exception catcher. It returns the error message.
  public String getError() {
    return this.customExceptionMessage;
  }

}
